import time
from insightface.app import FaceAnalysis

t = time.time()
app = FaceAnalysis(allowed_modules=['detection', ])
app.prepare(ctx_id=0, det_size=(640, 640))

print(f'cost: {time.time() - t}')